#ifndef MYGLWIDGET_H
#define MYGLWIDGET_H


#include <QtOpenGL>
#include <QGLWidget>
#include <QMouseEvent>
#include <cstdlib>
#include <GL/glu.h>
#include <QTimer>
#include <iostream>
#include <cstdlib>

class myGLWidget : public QGLWidget
{
    Q_OBJECT

public slots:
    virtual void timeOutSlot();


public:
    explicit myGLWidget(int framesPerSecond = 0, QWidget *parent = 0, char *name = 0);
    virtual void initializeGL() = 0;
    virtual void resizeGL(int width, int height) = 0;
    virtual void paintGL() = 0;
    virtual void keyPressEvent( QKeyEvent *keyEvent ) = 0;


private:
    QTimer *t_Timer;

};


#endif // MYGLWIDGET_H






